package com.xzy.shop.service.impl;

import com.xzy.shop.dao.GoodsDao;
import com.xzy.shop.dao.impl.GoodsDaoImpl;
import com.xzy.shop.domain.Category;
import com.xzy.shop.domain.Goods;
import com.xzy.shop.service.GoodsService;

import java.util.List;

public class GoodsServiceImpl implements GoodsService {
    GoodsDao dao = new GoodsDaoImpl();
    @Override
    public List<Goods> findAll() {
        return dao.findAll();
    }

    @Override
    public Goods findByGid(String gid) {
        return dao.findByGid(gid);
    }

    @Override
    public List<Goods> findByCid(String cid) {
        return dao.findByCid(cid);
    }

    @Override
    public List<Goods> serchGoods(String keywords) {
        return dao.serchGoods(keywords);
    }
}
